package cn.hinglo.permission.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @createTime: 2019-04-29 12:18:26
 * @author: HingLo
 * @description: 
 */
 @Entity
 @Table(name = "core_permission")
 @Data
 @Accessors(chain = true)
public class Permission implements Serializable {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "mid")
    private Long mid;

    @Column(name = "name")
    private String name;

    @Column(name = "url")
    private String url;

    @Column(name = "content")
    private String content;

    @Column(name = "date")
    private java.util.Date date;

    /***
     * 是否为必要权限
     */
    @Column(name = "must")
    private Integer must;

    /***
     * 权限所属服务
     */
    @Column(name = "server_id")
    private Integer serverId;

}
